package org.example.memento;

/**
 * @author wangbin
 * @date 2024/4/19
 * @vesion 1.0
 */
public class Memento {
    private String state;

    public Memento(String state) {
        this.state = state;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public void getStateFromMemento(Memento memento) {
        state = memento.getState();
    }
}
